export interface WorkflowTemplate {
    id: string;
    name: string;
    description: string;
    author: string;
    category: string;
    thumbnail: string;
    comfyuiJson: Record<string, any>;
    tags: string[];
    isPublic: boolean;
    version: string;
    stats: {
        uses: number;
        likes: number;
        views: number;
    };
    createTime?: Date;
    updateTime?: Date;
}

export interface WorkflowParams {
    name: string;
    type: 'text' | 'number' | 'select' | 'slider';
    label: string;
    default?: any;
    options?: Array<{
        label: string;
        value: any;
    }>;
    min?: number;
    max?: number;
    step?: number;
    required?: boolean;
}